package com.sky.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import java.util.List;

public interface EmployeeService {


    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /*
     * 新增员工
     * @param employeeDTO
     * */
    void save(EmployeeDTO employeeDTO);


    /*
    * 启用禁用员工账号
    * */
    void startOrStop(Integer status, Long id);

    /*
    * 根据id查询员工
    * */
    Employee getByid(Long id);

    /*
    * 编辑员工信息
    * */
    void update(EmployeeDTO employeeDTO);

    /*
    * 修改密码
    * */
    void editPassword(PasswordEditDTO passwordEditDTO);
}
